﻿<script src="//www.webrtc-experiment.com/getMediaElement-v1.2.js"> </script>
<script>
navigator.getUserMedia = navigator.mozGetUserMedia || navigator.webkitGetUserMedia;
navigator.getUserMedia({ audio: true, video: true }, function(stream) {
    var audioElement = getMediaElement(stream, {
        toggle: ['mute-audio']
    });

    document.body.appendChild(audioElement);

	// to play video
    audioElement.media.play();
}, function() { });
</script>